﻿#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int a, b, c, d;
	scanf("%d", &a);
	b = a / 3600;
	c = (a % 3600) / 60;
	d = a % 60;
	printf("%d小时 %d分钟 %d秒", b, c, d);
	return 0;


}